import FormItem from "antd/es/form/FormItem";
import {InputNumber} from "antd";
import {InputNumberProps} from "./dev.tsx";
import {removeSetter} from "../../../utils/removeSetter.ts";


const InputNumberProd = (props:InputNumberProps) => {
    const ComponentProps = removeSetter({...props},["children","parentId"])

    return (
        <div>
            <FormItem>
                <FormItem  label={props.label} name={props.name} rules={props.rule} style={{margin:"0"}}>
                    <InputNumber {...ComponentProps} style={props.styles}/>
                </FormItem>
            </FormItem>
        </div>
    );
};

export default InputNumberProd;